/*
 * This file is part of aion-lightning <aion-lightning.org>
 *
 * aion-lightning is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * aion-lightning is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with aion-lightning. If not, see <http://www.gnu.org/licenses/>.
 */
package com.aionengine.gameserver.model.templates.cosmeticitems;

import com.aionengine.gameserver.model.Race;

import javax.xml.bind.annotation.*;

/**
 * @author xTz
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CosmeticItemTemplate")
public class CosmeticItemTemplate {

    @XmlAttribute(name = "type")
    private String type;
    @XmlAttribute(name = "cosmetic_name")
    private String cosmeticName;
    @XmlAttribute(name = "id")
    private int id;
    @XmlAttribute(name = "race")
    private Race race;
    @XmlAttribute(name = "gender_permitted")
    private String genderPermitted;
    @XmlElement(name = "preset")
    private Preset preset;

    public String getType() {
        return type;
    }

    public String getCosmeticName() {
        return cosmeticName;
    }

    public int getId() {
        return id;
    }

    public Race getRace() {
        return race;
    }

    public String getGenderPermitted() {
        return genderPermitted;
    }

    public Preset getPreset() {
        return preset;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "Preset")
    public static class Preset {
        @XmlElement(name = "scale")
        private float scale;
        @XmlElement(name = "hair_type")
        private int hairType;
        @XmlElement(name = "face_type")
        private int faceType;
        @XmlElement(name = "hair_color")
        private int hairColor;
        @XmlElement(name = "lip_color")
        private int lipColor;
        @XmlElement(name = "eye_color")
        private int eyeColor;
        @XmlElement(name = "skin_color")
        private int skinColor;

        public float getScale() {
            return scale;
        }

        public int getHairType() {
            return hairType;
        }

        public int getFaceType() {
            return faceType;
        }

        public int getHairColor() {
            return hairColor;
        }

        public int getLipColor() {
            return lipColor;
        }

        public int getEyeColor() {
            return eyeColor;
        }

        public int getSkinColor() {
            return skinColor;
        }
    }
}
